#include "Wire.h"
#include "Ticker.h"
#include "bs818.h"
#include "rtc.h"
#include "sht.h"
#include "disp.h"
#include "WiFiManager.h"
#include <ESP8266WiFiMulti.h>
#include "task.h"
#include "EEPROM.h"
#include "eeconfig.h"
#include "ui.h"
#include "bitmap.h"
#include "blinkercfg.h"
#include "wifi.h"

ESP8266WiFiMulti WiFiMulti;

void setup(void)
{
    Serial.begin(115200);

    initWiFi();
    if(isVaildChar(blinker_key[0]))
        blinkerInit();
    Wire.begin();
    shtInit();
    rtcInit();
    touchInit();
    rgbInit();
    readColorConfig();
    taskStart();
}

void loop(void)
{
    taskRun();
}